import { NgModule, ErrorHandler } from '@angular/core';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { HelloIonicPage } from '../pages/hello-ionic/hello-ionic';
import { ItemDetailsPage } from '../pages/item-details/item-details';
import { ListPage } from '../pages/list/list';
import { CategoryPage } from '../pages/category/category';
import { BookPage } from '../pages/book/book';
import { SectionPage } from '../pages/section/section';
import { CategoryListPage } from '../pages/category-list/category-list';
import {SitePage} from '../pages/site/site';
import {HistoryPage} from '../pages/history/history';
import {FavourPage} from '../pages/favour/favour';

import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { IonicStorageModule } from '@ionic/storage';
import {SearchPage} from "../pages/search/search";

@NgModule({
  declarations: [
    MyApp,
    HelloIonicPage,
    ItemDetailsPage,
    ListPage,
    CategoryPage,
    CategoryListPage,
    BookPage,
    SectionPage,
    SitePage,
    HistoryPage,
    FavourPage,
    SearchPage,
  ],
  imports: [
    IonicModule.forRoot(MyApp),
    IonicStorageModule.forRoot()
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    HelloIonicPage,
    ItemDetailsPage,
    ListPage,
    CategoryPage,
    CategoryListPage,
    BookPage,
    SectionPage,
    SitePage,
    HistoryPage,
    FavourPage,
    SearchPage,
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {}
